﻿<include file="Public/head"/>
    <style type="text/css">
        .control-group{
            float: left;
            width: 50%;
        }        
    </style>
    <div class="container-fluid" >
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">网站logo设置</h3>
            </div>
            <div class="modal-body" style="max-height:600px;">
                <form action="{:U('Show/logo')}" class="form-horizontal" method="post" enctype="multipart/form-data">
                    <div ><p style="color:red;">链接必须带有http://或者https://,如果不想链接跳转，请输入JavaScript:;</p></div>

                    <div ><p style="color:red;">logo推荐尺寸：100X100</p></div>
                    <div class="control-group img">
                        <div class="controls"> 
                            <span>链接地址：</span>
                            <input type="text" name="url" value="{$data.url}" placeholder="请输入链接"><br><br>
                            <span>上传新图片：</span>
                            <input type="file" name="logo"><br>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">logo预览：</label>
                        <div class="controls">
                         <img src="__PUBLIC__/{$data.logo}" style="width:100px;height:100px;">
                        </div>
                         <hr />
                    </div>


                    
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn" onclick='history.go(-1)'>返回</button>
                <button class="btn btn-primary" id="add" onclick="add();">提交</button>
            </div>
    </div>

<include file="Public/foot"/>

